package com.example.main.mvp.view.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import android.os.Bundle;

import com.alibaba.android.arouter.launcher.ARouter;
import com.example.main.R;
import com.example.main.app.Contants;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Fragment fragment = (Fragment) ARouter.getInstance().build(Contants.ROUTER_MAIN_FRAGMENT).navigation();
        getSupportFragmentManager().beginTransaction().add(R.id.act_main_layout,fragment).commit();

    }
}
